package com.yangyouqi.chaper9.service.impl;

import com.yangyouqi.chaper9.dao.LearnMapper;
import com.yangyouqi.chaper9.domain.LearnResource;
import com.yangyouqi.chaper9.service.LearnService;
import com.yangyouqi.chaper9.tools.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author 杨友奇
 * @Time 2018/7/26
 */
@Service
public class LearnServiceImpl implements LearnService{
    @Autowired
    LearnMapper learnMapper;

    @Override
    public int add(LearnResource LearnResource) {
        return this.learnMapper.add(LearnResource);
    }

    @Override
    public int update(LearnResource LearnResource) {
        return this.learnMapper.update(LearnResource);
    }

    @Override
    public int deleteByIds(String[] ids) {
        return this.learnMapper.deleteByIds(ids);
    }

    @Override
    public LearnResource queryLearnResourceById(Long id) {
        return this.learnMapper.queryLearnResouceById(id);
    }

    @Override
    public List<LearnResource> queryLearnResourceList(Map<String, Object> params) {
        return this.learnMapper.queryLearnResouceList(params);
    }
}
